package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO
 *
 * @author ding
 * @since 2024/6/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("track")
public class Track {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String key;
    private String name;
    private String isDeleted;
    private String projectId;

    /** 乐观锁版本号 */
    @ApiModelProperty("乐观锁版本号")
    @Version
    @TableField(value = "version", fill = FieldFill.INSERT)
    private Integer version;

    @TableField(exist = false)
    private String projectName;
}
